const fs = require("fs");
const path = require("path");

let filePath = path.join(__dirname , "test.txt");
fs.writeFile(filePath , "awidsanczzxl" , (err) => {
    if(err) {
        console.err(err);
    } else {
        console.log("success");
    }
});